/*
 * Copyright (c) 2006-2008 Origami Frontiers Pte Ltd
 */

package com.rill.pojo.po;

import java.io.Serializable;

/**
 * @author rill
 * @date 2009-11-13
 */

public class RoleInfo implements Serializable {

	private static final long serialVersionUID = -5638567425685695648L;
	
	private int id;
	private String name;
	private int parentId;
	private String parentName;
	private int level;
	private int seq;
	private int nodeLeft;
	private int nodeRight;
	private String description;
	private String path;

	public RoleInfo() {
		this.id = -1;
	}

	public RoleInfo(int id, String name,
			int parentId, String parentName,int level,
			int seq, int nodeLeft, 
			int nodeRight, String description) {
		this.id = id;
		this.name = name;
		this.parentId = parentId;
		this.parentName = parentName;
		this.level = level;
		this.seq = seq;
		this.nodeLeft = nodeLeft;
		this.nodeRight = nodeRight;
		this.description = description;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("[FunctionInfo]:");
		sb.append("[id="+id+"]");
		sb.append("[name="+name+"]");
		sb.append("[parentId="+parentId+"]");
		return sb.toString();
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getNodeLeft() {
		return nodeLeft;
	}

	public void setNodeLeft(int nodeLeft) {
		this.nodeLeft = nodeLeft;
	}

	public int getNodeRight() {
		return nodeRight;
	}

	public void setNodeRight(int nodeRight) {
		this.nodeRight = nodeRight;
	}

	public int getSeq() {
		return seq;
	}

	public void setSeq(int seq) {
		this.seq = seq;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

}
